<?php
class Weblinks extends Public_Controller
{
	function __construct()
	{
		parent::__construct();
	}
	
	function inc_index($slug = 'main')
	{
		$data['slug'] = $slug;
		$data['category'] = new Category;
		$data['category']->get_by_slug($slug);
		$data['weblinks'] = new Weblink;
		$data['weblinks']->where('status','approve')->where('agency_id',$data['category']->id)->order_by('id','desc')->get();
		$this->load->view('inc_index',$data);
	}
}
?>